<%= form_with(model: micropost) do |form| %>
  <% if micropost.errors.any? %>
    <div style="color: red">
      <h2><%= pluralize(micropost.errors.count, "error") %> prohibited this micropost from being saved:</h2>

      <ul>
        <% micropost.errors.each do |error| %>
          <li><%= error.full_message %></li>
        <% end %>
      </ul>
    </div>
  <% end %>

  <div>
    <%= form.label :content, style: "display: block" %>
    <%= form.textarea :content %>
  </div>

<!--  <div>-->
    <%#= form.label :user_id, style: "display: block" %>
    <%#= form.number_field :user_id %>
<!--  </div>-->

  <div>
    <%= form.submit %>
  </div>
<% end %>
